package top.whysu.edevice.service.app;

import top.whysu.edevice.dto.app.account.AppLoginRequestDTO;
import top.whysu.edevice.dto.app.account.AppLoginResponseDTO;
import top.whysu.edevice.dto.app.account.AppRegisterDTO;
import top.whysu.edevice.dto.app.account.GetAccessTokenResponseDTO;

import java.math.BigDecimal;

/**
 * app相关
 */
public interface AppService {
    /**
     * app注册
     *
     * @param appRegisterDTO 注册对象
     * @return 账号id
     */
    BigDecimal wholeAppRegister(AppRegisterDTO appRegisterDTO);

    /**
     * app登录
     */
    AppLoginResponseDTO wholeLogin(AppLoginRequestDTO appLoginRequestDTO);

    /**
     * 获取accessToken
     *
     * @param username 账号
     * @return accessToken信息
     */
    GetAccessTokenResponseDTO getAccessToken(String username);
}
